//
let arr = ['../image/bj2.png'];
let id;
function timing() {
    if (id) {
        setTimeout(id);
    }
    id = setTimeout(function () {
        let masking = document.createElement('div');
        masking.style.opacity = '0';
        masking.setAttribute('class', 'mask');
        masking.style.width = '100%';
        masking.style.height = '3137px';
        masking.style.backgroundColor = '#d2d0d0';
        masking.style.opacity = '0.5';
        app.appendChild(masking);
        let imgTwo = document.createElement('img');
        imgTwo.setAttribute('src', arr[0]);
        imgTwo.style.width = '400px';
        imgTwo.setAttribute('class', 'img-t');
        app.appendChild(imgTwo);

        imgTwo.onclick = function () {
            app.removeChild(masking);
            app.removeChild(imgTwo);
            return;
        }

    }, 3000)
}
timing()





